import request from '@/utils/request'
import storage from '@/utils/storage'
// api地址
const api = {
	image: 'upload/image'
}
//获取token
const token = storage.get('AccessToken')

export function image(data) {
  return new Promise((resolve, reject) => {
  request({
    url: '/api/upload/image',
    method: 'post',
    data:{
  	  file
    }
  }).then((data) => {
    resolve(data)
  }).catch((e) => {
    reject(e)
  })
  })
}